package templates

import java.awt.Color
import org.uqbar.arena.widgets.Button
import org.uqbar.arena.widgets.Label
import org.uqbar.arena.widgets.Panel
import org.uqbar.lacar.ui.model.Action

class VentanaFinalTemplate {


	def labelFinal(Panel mainPanel, Color color, String text){
		new Label(mainPanel) => [
			setText(text)
			setBackground(color)
		]
	}
	
	def ButtonFinal(Panel mainPanel, String text, Action act){
		new Button(mainPanel) => [
			setCaption(text)
			onClick(act)
		]
	}
	
}